<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="zuo fl" th:fragment="zuoFl">
    <h3><a href="javascript:void(0)"><img th:src="${session.portalUser.header_url}" width="50" height="50"/></a>
        <p class="clearfix"><span class="fl" th:text="${session.portalUser.username}"></span><span class="fr"><a
                href="/login">退出登录</a></span></p></h3>
    <div><h4>我的交易</h4>
        <ul>
            <li><a href="/cart">我的购物车</a></li>
            <li><a href="/myorderq">我的订单</a></li>
            <li><a href="/myprod">评价晒单</a></li>
        </ul>
        <h4>个人中心</h4>
        <ul>
            <li><a href="/mygxin">我的中心</a></li>
            <li><a href="/address">地址管理</a></li>
        </ul>
        <h4>账户管理</h4>
        <ul>
            <li class="on"><a href="/mygrxx">个人信息</a></li>
            <li><a href="/remima">修改密码</a></li>
        </ul>
    </div>
</div>
<!--头部-->
<div  th:fragment="head">
    <div class="wrapper clearfix">
        <div class="clearfix" id="top"><h1 class="fl"><a href="index.html"><img src="img/logo.png"/></a></h1>
            <div class="fr clearfix" id="top1"><p class="fl" th:if="${session.portalUser==null}">
                <a th:href="@{'/login?url='+${url}}" id="login">登录</a>
                <a href="/reg" id="reg">注册</a>
            </p>
                <p class="fl" th:if="${session.portalUser!=null}"><a href="/login">退出登录</a></p>
                <form action="/search" method="get" class="fl"><input type="text" name="title" placeholder="搜索"/><input type="submit"/>
                </form>
                <div class="btn fl clearfix" th:if="${session.portalUser!=null}"><a href="/mygxin"><img
                        src="img/grzx.png"/></a><a href="/cart"><img src="img/gwc.png"/></a>
                    <p><a href="javascript:void(0)"><img src="img/smewm.png"/></a></p></div>
            </div>
        </div>
        <ul class="clearfix" id="bott"   >
            <li><a href="/">首页</a></li>
            <li th:each="category:${application.categorys}" th:if="${category.type==0}"><a href="javascript:void(0)" th:text="${category.name}"></a>
                <div class="sList2"   >
                    <div class="clearfix"><a  th:each="somCategory:${application.categorys}" th:if="${somCategory.pid==category.id}" th:href="${somCategory.page}" th:text="${somCategory.name}"></a></div>
                </div>
            </li>

        </ul>
    </div>
</div>
<!--尾部-->
<div class="footer" th:fragment="footer">
    <div class="top">
        <div class="wrapper">
            <div class="clearfix"><a href="#2" class="fl"><img src="img/foot1.png"/></a><span class="fl">7天无理由退货</span>
            </div>
            <div class="clearfix"><a href="#2" class="fl"><img src="img/foot2.png"/></a><span class="fl">15天免费换货</span>
            </div>
            <div class="clearfix"><a href="#2" class="fl"><img src="img/foot3.png"/></a><span class="fl">满599包邮</span>
            </div>
            <div class="clearfix"><a href="#2" class="fl"><img src="img/foot4.png"/></a><span class="fl">手机特色服务</span>
            </div>
        </div>
    </div>
    <p class="dibu">最家家居&copy;2013-2017公司版权所有 京ICP备080100-44备0000111000号<br/>
        违法和不良信息举报电话：400-800-8200，本网站所列数据，除特殊说明，所有数据均出自我司实验室测试</p></div>

<div class="gotop" th:fragment="gotop" th:if="${session.portalUser!=null}"><a href="/cart">
    <dl>
        <dt><img src="img/gt1.png"/></dt>
        <dd>去购<br/>物车</dd>
    </dl>
</a><a href="/mygxin">
    <dl>
        <dt><img src="img/gt3.png"/></dt>
        <dd>个人<br/>中心</dd>
    </dl>
</a><a href="javascript:void(0)" class="toptop" style="display: none">
    <dl>
        <dt><img src="img/gt4.png"/></dt>
        <dd>返回<br/>顶部</dd>
    </dl>
</a>
    <p>400-800-8200</p></div>
</body>
</html>